<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>demo2-8</title>
    <script src="vue.js"></script>
</head>
<body>
    <div id="app">{{content}}</div>
</body>
 <script>
 const comApp= { 
     data( ){
   return{
      content:"data函数的定义" //定义了一个属性cotent
   }
   }
  };
    const app =Vue.createApp(comApp).mount("#app");
 console.log(app.$data);  //在控制台输出了Vue实例的$data对象属性
 </script>

</html>